package com.sbm.app.listener;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;

/**
 * 启动完成事件（未初始化环境）
 * @author Administrator
 */
@SuppressWarnings("deprecation")
public class AppStartedListener implements ApplicationListener<ApplicationStartedEvent> {
    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        System.out.println("["+new SimpleDateFormat("HH:mm:ss").format(new Date())+"] 应用完成启动，开始加载环境...");
    }
}
